import { combineReducers, configureStore } from "@reduxjs/toolkit";
import cartReducer from "./reducer";

// 组合 Reducer
const rootReducer = combineReducers({
  cart: cartReducer,
});

// 创建 store（储存整个应用程序的状态）
export const store = configureStore({
  reducer: rootReducer,
});
